package boundedWildcards;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 8/30/12
 * Time: 12:11 PM
 *
 */
public class AComparable implements Comparable<AComparable>{
    protected Integer innerInt;

    public AComparable(Integer innerInt) {
        this.innerInt = innerInt;
    }

    public Integer getInnerInt() {
        return innerInt;
    }

    @Override
    public String toString() {
        return "AComparable{" +
                "innerInt=" + innerInt +
                '}';
    }

    @Override
    public int compareTo(AComparable o) {
        return innerInt.compareTo(o.getInnerInt());
    }
}
